body, ul, li, dl, dt, dd, p, h1, h2, h3, h4, h5, h6, input, tr, td, th {
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
}
img {
  border: none;
  vertical-align: middle;
}
ul,li {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
input[type="button"], input[type="reset"], input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}
button, input {
  line-height: normal;
  vertical-align: middle;
}
textarea {
  resize: none;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: ' ';
  clear: both;
  height: 0;
}

.substr {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.substr-two {
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flex-h {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.flex-c {
  .flex-h;
  justify-content: center;
}

.flex-l {
  .flex-h;
  justify-content: flex-start;
}

.flex-r {
  .flex-h;
  justify-content: flex-end;
}

.flex-v {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.flex-m {
  .flex-v;
  justify-content: center;
}

.flex-t {
  .flex-v;
  justify-content: flex-start;
}

.flex-b {
  .flex-v;
  justify-content: flex-end;
}

.main-loading {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10000; // z-index 10000封顶，项目中所有节点在这个范围内设置层级
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.4);
  .loading-box {
    width: 64px;
    height: 64px;
    background: url() center / 100% 100% no-repeat;
    animation: loading 0.5s linear infinite both;
  }
}
@keyframes loading {
  0% {
    transform: translateZ(0) rotate(0deg);
  }
  100% {
    transform: translateZ(0) rotate(360deg);
  }
}

